// 库存管理接口
import request from "@/common/request.js";
const api = {
  repair: "/device_repair/",
  device_device:'/device_device/'
};

const deRepairApi = {
   get_device(params) {
    return request({
      url: api.device_device,
      method: "get",
      params,
    });
  },
  get_repair(params) {
    return request({
      url: api.repair,
      method: "get",
      params,
    });
  },

  repair_detail(id) {
    return request({
      url: api.repair + id,
      method: "get",
    });
  },

  post_repair(data) {
    return request({
      url: api.repair,
      method: "post",
      data,
    });
  },

  patch_repair(data, id) {
    return request({
      url: api.repair + id + "/",
      method: "patch",
      data,
    });
  },

  delete_repair(id) {
    return request({
      url: api.repair + id + "/",
      method: "delete",
    });
  },
};
export default deRepairApi;
